import http from '@/service/http'
import type * as T from '@/types/api/index'
const settingApi: T.ISettingApi = {
  list(params) {
    return http.get('/admin/param/page', params)
  },
  add(data) {
    return http.post('/admin/param', data)
  },
  edit(data) {
    return http.put('/admin/param', data)
  },
  getTypeSetting(type) {
    return http.get(`/setting/getTypeSetting/${type}`)
  },
  del(data) {
    return http.delete('/admin/param', data.ids)
  },
}

export default settingApi
